const Mock = require('mockjs')
// 模拟接口
Mock.mock('/api/getItemLists', 'post', {
  code: 200,
  msg: 'succss',
  // 量词 数组 长度 字符串 number(大小范围)
  'data|10-20': [
    {
      'id|+1': 1,
      name: '@ctitle',
      'price|0-1000': 0,
      'cateId|1-100': 1,
      desc: '@cparagraph',
      'sale|0-1000': 0,
      onSale: '@boolean',
      thumb: '@image("100x100","@color","牛夫人")',
      createAt: '@date'
    }
  ]
})
